package com.cmccsi.uc.session;

import com.thn.netty.chat.server.ChannelInfo;

import io.netty.buffer.ByteBuf;

public class CONN {	
	private int fd;
	//struct bufferevent *bufev;
	private int ind;
	private ByteBuf in_buf;
	private int in_buf_len;
	//evbuffer *out_buf;
	private int out_buf_len;
	private CONN next;
	private WORKER owner;
	public WORKER getOwner() {
		return owner;
	}
	public void setOwner(WORKER owner) {
		this.owner = owner;
	}
	private int cip;
	private int cport;
	private int err_type;
	private int kickout_param;
	
	private ChannelInfo channelInfo;
	
	//struct event kickout_timer_event;
	
	
	public ChannelInfo getChannelInfo() {
		return channelInfo;
	}
	public void setChannelInfo(ChannelInfo channelInfo) {
		this.channelInfo = channelInfo;
	}
	
	
	public int getFd() {
		return fd;
	}
	public void setFd(int fd) {
		this.fd = fd;
	}
	public int getInd() {
		return ind;
	}
	public void setInd(int ind) {
		this.ind = ind;
	}
	public ByteBuf getIn_buf() {
		return in_buf;
	}
	public void setIn_buf(ByteBuf in_buf) {
		this.in_buf = in_buf;
	}
	public int getIn_buf_len() {
		return in_buf_len;
	}
	public void setIn_buf_len(int in_buf_len) {
		this.in_buf_len = in_buf_len;
	}
	public int getOut_buf_len() {
		return out_buf_len;
	}
	public void setOut_buf_len(int out_buf_len) {
		this.out_buf_len = out_buf_len;
	}
	public CONN getNext() {
		return next;
	}
	public void setNext(CONN next) {
		this.next = next;
	}
	public int getCip() {
		return cip;
	}
	public void setCip(int cip) {
		this.cip = cip;
	}
	public int getCport() {
		return cport;
	}
	public void setCport(int cport) {
		this.cport = cport;
	}
	public int getErr_type() {
		return err_type;
	}
	public void setErr_type(int err_type) {
		this.err_type = err_type;
	}
	public int getKickout_param() {
		return kickout_param;
	}
	public void setKickout_param(int kickout_param) {
		this.kickout_param = kickout_param;
	}
}
